using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ShopView : MonoBehaviour
{
    public Button luckyBtn;
    public Button shopBuyBtn;
    public Text showTarit;
    public Button clseBtn;
    public void OnCreate()
    {
        luckyBtn = PanelManager.Instance.UIShopPanel.transform.Find("Left/LuckyBtn").GetComponent<Button>();
        shopBuyBtn = PanelManager.Instance.UIShopPanel.transform.Find("Left/BuyBtn").GetComponent<Button>();
        showTarit = PanelManager.Instance.UIShopPanel.transform.Find("Up/Gold/GoldText").GetComponent<Text>();
        clseBtn = PanelManager.Instance.UIShopPanel.transform.Find("CloseBtn").GetComponent<Button>();
    }
    public void Init()
    {
        showTarit.text = MainGamePanelControlle.Instance.mainGamePanelModel.PlayerPropertyData.initJb.ToString();
    }
}
